import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: () => import('@/views/index/index.vue')
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      props: true,
      component: () => import('@/views/index/detail')
    },
    {
      path: '/more/:cid',
      name: 'More',
      props: true,
      component: () => import('@/views/index/more')
    }
  ]
})
